x86/iommu: add IOMMU entries for p2m_mmio_direct pages
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 9 Feb 2017 10:01:35 +0000 (11:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Feb 2017 10:01:35 +0000 (11:01 +0100)
commit50a498c8baed284455eca283d3852ccaa1d4ce2e
tree514499811341a697a293e7896fb6c7b995980dbd
parentc5e95f86cfcce97c558510ba764e60fa2c09db43
x86/iommu: add IOMMU entries for p2m_mmio_direct pages

There's nothing wrong with allowing the domain to perform DMA transfers to
MMIO areas that it already can access from the CPU, and this allows us to
remove the hack in set_identity_p2m_entry for PVH Dom0.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h